package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 87111
 * Date: 2025-08-19
 * Time: 17:01
 */
public class BigSchool {
    private static BigSchool bigSchool;
    private String name;
    private BigSchool() {
        this.name = "张校长";
    }
    public static BigSchool getBigSchool() {
        if(bigSchool == null) {
            bigSchool = new BigSchool();
        }
        return bigSchool;
    }

    public void speak(String thing) {
        System.out.println(this.name + "说" + thing);
    }
}
